.canvas {
    display: inline-block;
    width: 320px;
    height: 240px;
}